Learn R Programming

circular (version 0.1)

[.circular: Extract or Replace Parts of a Circular Object

Description

Operators act on vectors and matrices to extract or replace subsets, methods for Circular Data.

Usage

x[i]
x[i, j, ...]
x[i, j, ..., drop=TRUE]

Arguments

x
object from which to extract elements.
i, j, ...
elements to extract or replace.
drop
For matrices. If TRUE the result is coerced to the lowest possible dimension (see examples below).

example

x <- circular(matrix(rwrappednormal(n=100, mu=0), nrow=5)) dim(x) x[1,] x[,1] x[,1, drop=FALSE]